/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.pay.util;


import com.yunhoo.pay.model.QueryVouchers;
import com.yunhoo.sys.util.common.Null;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public class BillQueryToolKit {

    public static Map billQueryParamMap(QueryVouchers qlb) {
        Map map = new HashMap();
        map.put("number", qlb.getNumber().trim());
        map.put("affair", qlb.getAffair().trim());
        map.put("projcode", Null.convert(qlb.getProject().getFinCode()).trim());
        map.put("deptname", Null.convert(qlb.getDept().getName()).trim());
        map.put("memo", qlb.getMemo().trim());
        map.put("cpsn_name", Null.convert(qlb.getUser().getCpsn_number()).trim());
        map.put("budgetSource", qlb.getBudgetSource().trim());
        map.put("costcode", Null.convert(qlb.getCostitem().getCode()).trim());
        map.put("paycode", qlb.getPaycode().trim());
        map.put("costClass", qlb.getCostClass().trim());
        map.put("costType", qlb.getCostTypes().getCode().trim());
        map.put("payStyle", qlb.getPayStyle().trim());
        map.put("ticketcode", qlb.getTicketcode().trim());
        map.put("numDateStart", qlb.getNumDateStart());
        map.put("numDateEnd", qlb.getNumDateEnd());
        map.put("auditDateStart", qlb.getAuditDateStart());
        map.put("auditDateEnd", qlb.getAuditDateEnd());
        map.put("payDateStart", qlb.getPayDateStart());
        map.put("payDateEnd", qlb.getPayDateEnd());
        map.put("totalStart", qlb.getTotalStart());
        map.put("totalEnd", qlb.getTotalEnd());
        map.put("checkaccountStart", qlb.getCheckaccountStart());
        map.put("checkaccountEnd", qlb.getCheckaccountEnd());
        map.put("payaccountStart", qlb.getPayaccountStart());
        map.put("payaccountEnd", qlb.getPayaccountEnd());
        return map;
    }
}
